package com.knight.study.patterns.tujie.abstractFactory;

/**
 * @Author knight
 * @Date 2024/9/11 10:51
 */

public class ListLink extends Link{
    public ListLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makeHtml() {
        return "  <li><a href=\"" + url + "\">" + caption + "</a></li>\n";
    }
}
